<div id="form_leave">
	<div class="pc-nav form-nav">
		<button @click="back(-1)"><i class="icon iconfont">&#xe62b;</i></button>
		<span>用章申请</span>
	</div>
	<ul class="approval-form-wrap">
		<li>
			<em class="left"><span style="color: red;">*</span>公司</em>
			<i class="right">
				<select name="" id="" v-model="submitJson.component[0].value" @change="selectChange(submitJson.component[0].value)">
					<option value="" selected="selected">请选择(必填)</option>
					<option value="北京新七天">北京新七天</option>
					<option value="杭州新七天">杭州新七天</option>
				</select>
			</i>
		</li>
		<li v-if="subFlag && /^\s*$/g.test(submitJson.component[0].value)">
			<em class="left"></em>
			<i class="right">
				<p style="color: red;" data-false='true'>公司不能为空</p>
			</i>
		</li>
		<li>
			<em class="left"><span style="color: red;">*</span>章类型</em>
			<i class="right">
				<select name="" id="" v-model="submitJson.component[1].value">
					<option value="" >请选择(必填)</option>
					<option value="公章">公章</option>
					<option value="合同章">合同章</option>
					<option value="财务章">财务章</option>
					<option value="营业执照副本">营业执照副本</option>
				</select>
			</i>
		</li>
		<li v-if="subFlag && /^\s*$/g.test(submitJson.component[1].value)">
			<em class="left"></em>
			<i class="right">
				<p style="color: red;" data-false='true'>章类型不能为空</p>
			</i>
		</li>
		<li>
			<em class="left"><span style="color: red;">*</span>外借/盖章</em>
			<i class="right">
				<select name="" id="" v-model="submitJson.component[2].value">
					<option value="" >请选择(必填)</option>
					<option value="盖章">盖章</option>
					<option value="外借">外借</option>
				</select>
			</i>
		</li>
		<li v-if="subFlag && /^\s*$/g.test(submitJson.component[2].value)">
			<em class="left"></em>
			<i class="right">
				<p style="color: red;" data-false='true'>外借/盖章不能为空</p>
			</i>
		</li>
		<li>
			<em class="left">用途</em>
			<i class="right">
				<textarea name="" rows="" cols="" v-model="submitJson.component[3].value"></textarea>
			</i>
		</li>
		<li>
			<em class="left">开始时间</em>
			<i class="icon  right">
				<span class="datepicker">
					<vue-datepicker-local v-model="submitJson.component[4].value" ></vue-datepicker-local>
				</span>
			</i>
		</li>
		<li>
			<em class="left">结束时间</em>
			<i class="icon  right">
				<span class="datepicker">
					<vue-datepicker-local v-model="submitJson.component[5].value"></vue-datepicker-local>
				</span>
			</i>
		</li>
		<li>
			<em class="left">图片</em>
			<i class="right">
				<upload_tpl message="img" name="图片" v-on:getfile="getFilefn"></upload_tpl>
			</i>
		</li>
		<!--<li>
			<em class="left">附件</em>
			<i class="right">
				<upload_tpl message="file" v-on:getfile="getFilefn"></upload_tpl>
			</i>
		</li>-->
		<li>
			<em class="left">审批人</em>
			<i class="right">
				<dingding_users  v-on:getdingdinguser="getApproveUsers" message="approve" :approve_list="approve_list" :cc_list="cc_list" ></dingding_users>
			</i>
		</li>
		<li>
			<em class="left">抄送人</em>
			<i class="right">
				  <dingding_users v-on:getdingdinguser="getCopyUsers" :approve_list="approve_list" :cc_list="cc_list" message="cc"></dingding_users>
			</i>
		</li>
		<li>
			<em class="left"></em>
			<i class="right">
				  <span v-if="subFlag"></span>
				 <button class="submit-foot" @click="submitFn">提交</button>
			</i>
		</li>
	</ul>
		
</div>
